import csv
import os


def reader(filename):
    res = []
    # 当前文件路径
    base_path = os.path.dirname(__file__)
    path = base_path.replace("func", "test_data/" + filename)
    with open(path, 'r') as f:
        table = csv.reader(f)
        i = 0
        for row in table:
            if i == 0:
                pass
            else:
                res.append(row)
            i = i + 1
    return res
